import request from '@/router/axios'

export function fetchList(query) {
  return request({
    url: '/comm/syscommconfig/page',
    method: 'get',
    params: query
  })
}


export function putObj(obj) {
  return request({
    url: '/comm/syscommconfig/updateById',
    method: 'put',
    data: obj
  })
}

export function testRemote(id) {
  return request({
    url: '/comm/syscommconfig/testRemote/'+id,
    method: 'post'
  })
}
export function delObj(id) {
  return request({
    url: '/comm/syscommconfig/'+id,
    method: 'delete'
  })
}

export function save(obj) {
  return request({
    url: '/comm/syscommconfig/save',
    method: 'post',
    data: obj
  })
}

export function check(query) {
  return request({
    url: '/comm/syscommconfig/check',
    method: 'get',
    params: query
  })
}

export function inSysList(query) {
  return request({
    url: '/comm/insystem/insys_list',
    method: 'get',
    params: query
  })
}

export function outSysList(query) {
  return request({
    url: '/comm/outsystem/outsys_list',
    method: 'get',
    params: query
  })
}

export function groupList(query) {
  return request({
    url: '/comm/group/group_list/all',
    method: 'get',
    params: query
  })
}
